import httpClient from "@/utils/request";
import type { UserLoginResult } from "./types";

/** 登录 */
export const login = (data?: object) => {
  return httpClient.post<UserLoginResult>("/auth/login", data);
};

/** 退出登录 */
export const logout = () => {
  return httpClient.post("/auth/logout");
};
